
package com.zsrt.day20170504.ch01;


public class MagicThread implements Runnable{

	@Override
	public void run() {
		for(int index=0;index<10;index++){
			System.out.println(Thread.currentThread().getName()+index);
			
			//500毫秒
			try {
				Thread.sleep(500);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		
		}
	}

	
}
